package idp

import (
	"hcy-api/lib/utils"
	"hcy-api/structs/base"
	"hcy-api/structs/tables"
)

type SearchClientPage struct {
	base.Page
	BranchId int64  `form:"branchId,string"`
	Hostname string `form:"hostname"`
	Ip       string `form:"ip"`
}

// ExecPluginDto 前端调用执行插件的dto
type ExecPluginDto struct {
	ClientId int64    `json:"clientId,string" form:"clientId,string"`
	Cmd      string   `json:"cmd" form:"cmd"`
	Argus    []string `json:"argus" form:"argus"`
}

type ClientDto struct {
	tables.IdpClient
	IsOnline bool `json:"isOnline"`
}

type ClientBindBranchDto struct {
	ClientIds utils.StringArrayInt64 `json:"clientIds"`
	BranchId  int64                  `json:"branchId,string"`
}
